<%--
  Created by IntelliJ IDEA.
  User: 31921
  Date: 2024/12/15
  Time: 21:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html; charset=UTF-8" language="java"
pageEncoding="UTF-8" %>
<%@ page import="com.Student, com.Grade" %>
<html>
  <head>
    <title>新增成绩</title>
    <style>
      body {
        font-family: Arial, sans-serif;
        background-color: #f4f4f4;
        margin: 0;
        padding: 0;
      }
      .header {
        background-color: #4cafa7;
        color: white;
        padding: 15px;
        text-align: center;
      }
      .container {
        padding: 20px;
        max-width: 600px;
        margin: 0 auto;
        background-color: white;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
      }
      h2 {
        text-align: center;
      }
      .form-group {
        margin-bottom: 15px;
      }
      label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
      }
      input[type="text"], input[type="email"], input[type="number"], input[type="tel"], select {
        width: 100%;
        padding: 10px;
        margin: 5px 0;
        border-radius: 4px;
        border: 1px solid #ddd;
      }
      .button {
        background-color: #afaa4c;
        color: white;
        padding: 10px 15px;
        text-decoration: none;
        border-radius: 4px;
        /*width: 100%;*/
        margin-top: 20px;
        display: inline-block;
        /*text-align: center;*/
      }
      .button:hover {
        background-color: #a06045;
      }
    </style>
  </head>
  <body>

    <div class="header">
      <h1>新增成绩</h1>
    </div>

    <div class="container">
      <!-- 返回上一级按钮 -->
      <a href="gradeManagement" class="button">返回</a>
      <form action="addGrade" method="POST">
        <div class="form-group">
          <label for="studentId">学号</label>
          <input type="text" id="studentId" name="studentId" required />
        </div>
        <div class="form-group">
          <label for="courseName">课程名称</label>
          <input type="text" id="courseName" name="courseName" required />
        </div>
        <div class="form-group">
          <label for="grade">成绩</label>
          <input type="number" id="grade" name="grade" min="0" max="100" required />
        </div>
        <button type="submit" class="button">提交</button>
      </form>
    </div>

  </body>
</html>

